<?php

class PageScript extends ScriptBase
{
	public function __construct()
	{
		$this->mysql = n_api('mysql')->cname('weixin');
	}

	public function addPage()
	{
		foreach (range(1, 15) as $id) {
			$data = [
				'name' => '静态页'.$id,
				'ctime' => time()
			];
			$this->mysql->insert('page_main', $data);
		}
	}
}